package com.vichat.room.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-10-08 10:59:30.038
 */
@Entity
@Table(name = "room_basic",catalog = "roomdb")
public class RoomBasic implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "room_basic";

    /**频道ID */
	public static final String ALIAS_RID = "rid";
    /** */
	public static final String ALIAS_NAME = "name";
    /** */
	public static final String ALIAS_PASSWORD = "password";
    /** */
	public static final String ALIAS_STYLE = "style";
    /**room user count */
	public static final String ALIAS_CAPACITY = "capacity";
    /**1,permanent room , 0, temporary room */
	public static final String ALIAS_EXPIRE_TYPE = "expire_type";
    /**1,auto login, 0, manual login */
	public static final String ALIAS_LOGIN_TYPE = "login_type";
    /** */
	public static final String ALIAS_ENTER_CTRL = "enter_ctrl";
    /**1,support offline message, 0, online support online message */
	public static final String ALIAS_OFFLINE_CTRL = "offline_ctrl";
    /** */
	public static final String ALIAS_PTT_CTRL = "ptt_ctrl";
    /** */
	public static final String ALIAS_TEXT_CTRL = "text_ctrl";
    /** */
	public static final String ALIAS_AUDIO_CTRL = "audio_ctrl";
    /** */
	public static final String ALIAS_VIDEO_CTRL = "video_ctrl";
    /** */
	public static final String ALIAS_MEDIA_CTRL = "media_ctrl";
    /** */
	public static final String ALIAS_PLAY_CTRL = "play_ctrl";
    /** */
	public static final String ALIAS_LAYOUT = "layout";
    /** */
	public static final String ALIAS_VIDEO_ID = "video_id";
    /** */
	public static final String ALIAS_AUDIO_ID = "audio_id";
    /** */
	public static final String ALIAS_OWNER_ID = "owner_id";
    /** */
	public static final String ALIAS_INTRO = "intro";
    /** */
	public static final String ALIAS_NOTE = "note";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /**版本号 */
	public static final String ALIAS_VERSION = "version";
    /**企业编号 */
	public static final String ALIAS_PARTY_ID = "party_id";
    /**组织ID */
	public static final String ALIAS_ORG_ID = "org_id";
    /**组织编号 */
	public static final String ALIAS_ORG_CODE = "org_code";
    /** */
	public static final String ALIAS_WIN1 = "win1";
    /** */
	public static final String ALIAS_WIN2 = "win2";
    /** */
	public static final String ALIAS_WIN3 = "win3";
    /** */
	public static final String ALIAS_WIN4 = "win4";
    /** */
	public static final String ALIAS_WIN5 = "win5";
    /** */
	public static final String ALIAS_WIN6 = "win6";
    /** */
	public static final String ALIAS_WIN7 = "win7";
    /** */
	public static final String ALIAS_WIN8 = "win8";
    /** */
	public static final String ALIAS_WIN9 = "win9";
    /** */
	public static final String ALIAS_WIN10 = "win10";
    /** */
	public static final String ALIAS_WIN11 = "win11";
    /** */
	public static final String ALIAS_WIN12 = "win12";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /** */
	public static final String ALIAS_HOUR = "hour";
    /**录制开关 1开  0关 */
	public static final String ALIAS_RECORD = "record";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "rid", unique = true, nullable = false)
    public java.lang.Long rid;
  
 	@Column(name = "name")
    public java.lang.String name;
  
 	@Column(name = "password")
    public java.lang.String password;
  
 	@Column(name = "style")
    public java.lang.Long style;
  
 	@Column(name = "capacity")
    public java.lang.Long capacity;
  
 	@Column(name = "expire_type")
    public java.lang.Long expireType;
  
 	@Column(name = "login_type")
    public java.lang.Long loginType;
  
 	@Column(name = "enter_ctrl")
    public java.lang.Long enterCtrl;
  
 	@Column(name = "offline_ctrl")
    public java.lang.Long offlineCtrl;
  
 	@Column(name = "ptt_ctrl")
    public java.lang.Long pttCtrl;
  
 	@Column(name = "text_ctrl")
    public java.lang.Long textCtrl;
  
 	@Column(name = "audio_ctrl")
    public java.lang.Long audioCtrl;
  
 	@Column(name = "video_ctrl")
    public java.lang.Long videoCtrl;
  
 	@Column(name = "media_ctrl")
    public java.lang.Long mediaCtrl;
  
 	@Column(name = "play_ctrl")
    public java.lang.Long playCtrl;
  
 	@Column(name = "layout")
    public java.lang.Long layout;
  
 	@Column(name = "video_id")
    public java.lang.Long videoId;
  
 	@Column(name = "audio_id")
    public java.lang.Long audioId;
  
 	@Column(name = "owner_id")
    public java.lang.Long ownerId;
  
 	@Column(name = "intro")
    public java.lang.String intro;
  
 	@Column(name = "note")
    public java.lang.String note;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Column(name = "version")
    public java.lang.Long version = 0l;
  
 	@Column(name = "party_id")
    public java.lang.Long partyId;
  
 	@Column(name = "org_id")
    public java.lang.Long orgId;
  
 	@Column(name = "org_code")
    public java.lang.String orgCode;
  
 	@Column(name = "win1")
    public java.lang.Long win1 = 0l;
  
 	@Column(name = "win2")
    public java.lang.Long win2 = 0l;
  
 	@Column(name = "win3")
    public java.lang.Long win3 = 0l;
  
 	@Column(name = "win4")
    public java.lang.Long win4 = 0l;
  
 	@Column(name = "win5")
    public java.lang.Long win5 = 0l;
  
 	@Column(name = "win6")
    public java.lang.Long win6 = 0l;
  
 	@Column(name = "win7")
    public java.lang.Long win7 = 0l;
  
 	@Column(name = "win8")
    public java.lang.Long win8 = 0l;
  
 	@Column(name = "win9")
    public java.lang.Long win9 = 0l;
  
 	@Column(name = "win10")
    public java.lang.Long win10 = 0l;
  
 	@Column(name = "win11")
    public java.lang.Long win11 = 0l;
  
 	@Column(name = "win12")
    public java.lang.Long win12 = 0l;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Column(name = "hour")
    public java.lang.Long hour = 0l;
  
 	@Column(name = "record")
    public java.lang.Long record;
  





	public java.lang.Long getRid() {
		return this.rid;
	}
	
	public void setRid(java.lang.Long value) {
		this.rid = value;
	}

	public java.lang.String getName() {
		return this.name;
	}
	
	public void setName(java.lang.String value) {
		this.name = value;
	}

	public java.lang.String getPassword() {
		return this.password;
	}
	
	public void setPassword(java.lang.String value) {
		this.password = value;
	}

	public java.lang.Long getStyle() {
		return this.style;
	}
	
	public void setStyle(java.lang.Long value) {
		this.style = value;
	}

	public java.lang.Long getCapacity() {
		return this.capacity;
	}
	
	public void setCapacity(java.lang.Long value) {
		this.capacity = value;
	}

	public java.lang.Long getExpireType() {
		return this.expireType;
	}
	
	public void setExpireType(java.lang.Long value) {
		this.expireType = value;
	}

	public java.lang.Long getLoginType() {
		return this.loginType;
	}
	
	public void setLoginType(java.lang.Long value) {
		this.loginType = value;
	}

	public java.lang.Long getEnterCtrl() {
		return this.enterCtrl;
	}
	
	public void setEnterCtrl(java.lang.Long value) {
		this.enterCtrl = value;
	}

	public java.lang.Long getOfflineCtrl() {
		return this.offlineCtrl;
	}
	
	public void setOfflineCtrl(java.lang.Long value) {
		this.offlineCtrl = value;
	}

	public java.lang.Long getPttCtrl() {
		return this.pttCtrl;
	}
	
	public void setPttCtrl(java.lang.Long value) {
		this.pttCtrl = value;
	}

	public java.lang.Long getTextCtrl() {
		return this.textCtrl;
	}
	
	public void setTextCtrl(java.lang.Long value) {
		this.textCtrl = value;
	}

	public java.lang.Long getAudioCtrl() {
		return this.audioCtrl;
	}
	
	public void setAudioCtrl(java.lang.Long value) {
		this.audioCtrl = value;
	}

	public java.lang.Long getVideoCtrl() {
		return this.videoCtrl;
	}
	
	public void setVideoCtrl(java.lang.Long value) {
		this.videoCtrl = value;
	}

	public java.lang.Long getMediaCtrl() {
		return this.mediaCtrl;
	}
	
	public void setMediaCtrl(java.lang.Long value) {
		this.mediaCtrl = value;
	}

	public java.lang.Long getPlayCtrl() {
		return this.playCtrl;
	}
	
	public void setPlayCtrl(java.lang.Long value) {
		this.playCtrl = value;
	}

	public java.lang.Long getLayout() {
		return this.layout;
	}
	
	public void setLayout(java.lang.Long value) {
		this.layout = value;
	}

	public java.lang.Long getVideoId() {
		return this.videoId;
	}
	
	public void setVideoId(java.lang.Long value) {
		this.videoId = value;
	}

	public java.lang.Long getAudioId() {
		return this.audioId;
	}
	
	public void setAudioId(java.lang.Long value) {
		this.audioId = value;
	}

	public java.lang.Long getOwnerId() {
		return this.ownerId;
	}
	
	public void setOwnerId(java.lang.Long value) {
		this.ownerId = value;
	}

	public java.lang.String getIntro() {
		return this.intro;
	}
	
	public void setIntro(java.lang.String value) {
		this.intro = value;
	}

	public java.lang.String getNote() {
		return this.note;
	}
	
	public void setNote(java.lang.String value) {
		this.note = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.lang.Long getVersion() {
		return this.version;
	}
	
	public void setVersion(java.lang.Long value) {
		this.version = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.Long getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(java.lang.Long value) {
		this.orgId = value;
	}

	public java.lang.String getOrgCode() {
		return this.orgCode;
	}
	
	public void setOrgCode(java.lang.String value) {
		this.orgCode = value;
	}

	public java.lang.Long getWin1() {
		return this.win1;
	}
	
	public void setWin1(java.lang.Long value) {
		this.win1 = value;
	}

	public java.lang.Long getWin2() {
		return this.win2;
	}
	
	public void setWin2(java.lang.Long value) {
		this.win2 = value;
	}

	public java.lang.Long getWin3() {
		return this.win3;
	}
	
	public void setWin3(java.lang.Long value) {
		this.win3 = value;
	}

	public java.lang.Long getWin4() {
		return this.win4;
	}
	
	public void setWin4(java.lang.Long value) {
		this.win4 = value;
	}

	public java.lang.Long getWin5() {
		return this.win5;
	}
	
	public void setWin5(java.lang.Long value) {
		this.win5 = value;
	}

	public java.lang.Long getWin6() {
		return this.win6;
	}
	
	public void setWin6(java.lang.Long value) {
		this.win6 = value;
	}

	public java.lang.Long getWin7() {
		return this.win7;
	}
	
	public void setWin7(java.lang.Long value) {
		this.win7 = value;
	}

	public java.lang.Long getWin8() {
		return this.win8;
	}
	
	public void setWin8(java.lang.Long value) {
		this.win8 = value;
	}

	public java.lang.Long getWin9() {
		return this.win9;
	}
	
	public void setWin9(java.lang.Long value) {
		this.win9 = value;
	}

	public java.lang.Long getWin10() {
		return this.win10;
	}
	
	public void setWin10(java.lang.Long value) {
		this.win10 = value;
	}

	public java.lang.Long getWin11() {
		return this.win11;
	}
	
	public void setWin11(java.lang.Long value) {
		this.win11 = value;
	}

	public java.lang.Long getWin12() {
		return this.win12;
	}
	
	public void setWin12(java.lang.Long value) {
		this.win12 = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.lang.Long getHour() {
		return this.hour;
	}
	
	public void setHour(java.lang.Long value) {
		this.hour = value;
	}

	public java.lang.Long getRecord() {
		return this.record;
	}
	
	public void setRecord(java.lang.Long value) {
		this.record = value;
	}


	
	public RoomBasic() {
	}
	
	public RoomBasic(boolean qryflag) {
	    if(qryflag){
	    		this.rid = null;
				this.name = null;
				this.password = null;
				this.style = null;
				this.capacity = null;
				this.expireType = null;
				this.loginType = null;
				this.enterCtrl = null;
				this.offlineCtrl = null;
				this.pttCtrl = null;
				this.textCtrl = null;
				this.audioCtrl = null;
				this.videoCtrl = null;
				this.mediaCtrl = null;
				this.playCtrl = null;
				this.layout = null;
				this.videoId = null;
				this.audioId = null;
				this.ownerId = null;
				this.intro = null;
				this.note = null;
				this.createTime = null;
				this.updateTime = null;
				this.version = null;
				this.partyId = null;
				this.orgId = null;
				this.orgCode = null;
				this.win1 = null;
				this.win2 = null;
				this.win3 = null;
				this.win4 = null;
				this.win5 = null;
				this.win6 = null;
				this.win7 = null;
				this.win8 = null;
				this.win9 = null;
				this.win10 = null;
				this.win11 = null;
				this.win12 = null;
				this.state = null;
				this.hour = null;
				this.record = null;
			    }
	}


	public RoomBasic(
	    java.lang.Long inRid,
	    java.lang.String inName,
	    java.lang.String inPassword,
	    java.lang.Long inStyle,
	    java.lang.Long inCapacity,
	    java.lang.Long inExpireType,
	    java.lang.Long inLoginType,
	    java.lang.Long inEnterCtrl,
	    java.lang.Long inOfflineCtrl,
	    java.lang.Long inPttCtrl,
	    java.lang.Long inTextCtrl,
	    java.lang.Long inAudioCtrl,
	    java.lang.Long inVideoCtrl,
	    java.lang.Long inMediaCtrl,
	    java.lang.Long inPlayCtrl,
	    java.lang.Long inLayout,
	    java.lang.Long inVideoId,
	    java.lang.Long inAudioId,
	    java.lang.Long inOwnerId,
	    java.lang.String inIntro,
	    java.lang.String inNote,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
	    java.lang.Long inVersion,
	    java.lang.Long inPartyId,
	    java.lang.Long inOrgId,
	    java.lang.String inOrgCode,
	    java.lang.Long inWin1,
	    java.lang.Long inWin2,
	    java.lang.Long inWin3,
	    java.lang.Long inWin4,
	    java.lang.Long inWin5,
	    java.lang.Long inWin6,
	    java.lang.Long inWin7,
	    java.lang.Long inWin8,
	    java.lang.Long inWin9,
	    java.lang.Long inWin10,
	    java.lang.Long inWin11,
	    java.lang.Long inWin12,
	    java.lang.Long inState,
	    java.lang.Long inHour,
		java.lang.Long inRecord
	 ) {
		super();
				this.rid = inRid;
				this.name = inName;
				this.password = inPassword;
				this.style = inStyle;
				this.capacity = inCapacity;
				this.expireType = inExpireType;
				this.loginType = inLoginType;
				this.enterCtrl = inEnterCtrl;
				this.offlineCtrl = inOfflineCtrl;
				this.pttCtrl = inPttCtrl;
				this.textCtrl = inTextCtrl;
				this.audioCtrl = inAudioCtrl;
				this.videoCtrl = inVideoCtrl;
				this.mediaCtrl = inMediaCtrl;
				this.playCtrl = inPlayCtrl;
				this.layout = inLayout;
				this.videoId = inVideoId;
				this.audioId = inAudioId;
				this.ownerId = inOwnerId;
				this.intro = inIntro;
				this.note = inNote;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.version = inVersion;
				this.partyId = inPartyId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
				this.win1 = inWin1;
				this.win2 = inWin2;
				this.win3 = inWin3;
				this.win4 = inWin4;
				this.win5 = inWin5;
				this.win6 = inWin6;
				this.win7 = inWin7;
				this.win8 = inWin8;
				this.win9 = inWin9;
				this.win10 = inWin10;
				this.win11 = inWin11;
				this.win12 = inWin12;
				this.state = inState;
				this.hour = inHour;
				this.record = inRecord;
			}


    @Transient
    private String orgName = "";
    @Transient
    private String ownerName = "";
    @Transient
    private Long uid;
    @Transient
    private String phoneOrId;
    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }


}

